package com.news.di.module;

import android.content.Context;

import com.news.model.http.RetrofitHelper;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 *
 * Created by Administrator on 2017/3/1 0001.
 */

@Singleton
@Module
public class AppModule {
    private final Context mApplicationContext;

    public AppModule(Context context) {
        this.mApplicationContext = context.getApplicationContext();
    }

    @Provides
    Context providerApplicationContext(){
        return mApplicationContext;
    }

    @Provides
    RetrofitHelper providerRetrofitHelper(){
        return new RetrofitHelper();
    }
}
